Hook for managing connected wallets
UseWalletsReturnType
ConnectedWallet[]
Array of all connected wallets.
LinkedWallet[] | undefined
Array of linked wallets for the active embedded wallet (if any). Only available when using a WaaS wallet.
(address: string) => Promise<void>
Function to set a wallet as active by its address.
Parameter | Type | Description |
---|---|---|
address | string | The Ethereum address of the wallet to set as active |
(address: string) => Promise<void>
Function to disconnect a wallet by its address.
Parameter | Type | Description |
---|---|---|
address | string | The Ethereum address of the wallet to disconnect |
() => Promise<void>
Function to refresh the list of linked wallets. Useful after linking a new wallet.